package com.hdoit.ares.web.acc.modelconfig;

import com.hdoit.ares.web.acc.providers.ApplyforTypeProvider;
import com.hdoit.ares.web.acc.providers.TrackTypeProvider;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年11月22日 10:24:00
 * @comment
 */
public class WithdrawApplyforConfig extends ModelMetadataAttributeConfiguration{
    public WithdrawApplyforConfig(){
        this.setProperty("name")
            .hasAttribute(new DisplayNameAttribute("申请人姓名"));

        this.setProperty("account")
            .hasAttribute(new DisplayNameAttribute("用户号"));
        
        this.setProperty("customerId")
        .hasAttribute(new DisplayNameAttribute("客戶Id"));

        this.setProperty("goldBeanNum")
            .hasAttribute(new DisplayNameAttribute("提现金额"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));
        
        this.setProperty("createDate")
        .hasAttribute(new DisplayNameAttribute("申请时间"));

        this.setProperty("orderNum")
            .hasAttribute(new DisplayNameAttribute("申请订单号"));

        this.setProperty("state")
            .hasAttribute(new DisplayNameAttribute("申请状态"))
            .hasAttribute(new DropDownListAttribute(new ApplyforTypeProvider()));

        this.setProperty("trackName")
        .hasAttribute(new DisplayNameAttribute("处理人"));
        
        this.setProperty("trackDate")
        .hasAttribute(new DisplayNameAttribute("处理时间"));
        
        this.setProperty("trackState")
        .hasAttribute(new DisplayNameAttribute("处理状态"))
        .hasAttribute(new DropDownListAttribute(new TrackTypeProvider()));
        
        this.setProperty("comments")
        .hasAttribute(new DisplayNameAttribute("备注"));
    }
}
